package jmine.tec.datadigester.positional.writer.factory;

import jmine.tec.datadigester.positional.meta.PositionalBigDecimalFieldMetadata;
import jmine.tec.datadigester.positional.writer.BigDecimalPositionalWriter;
import jmine.tec.datadigester.positional.writer.PositionalFieldWriter;

/**
 * {@link PositionalWriterFactory} para writers de campos BigDecimal
 * 
 * @author israel.crisanto
 */
public class BigDecimalPositionalWriterFactory implements PositionalWriterFactory<PositionalBigDecimalFieldMetadata> {

    /**
     * {@inheritDoc}
     */
    public PositionalFieldWriter create(PositionalBigDecimalFieldMetadata meta) {
        return new BigDecimalPositionalWriter(meta);
    }

    /**
     * {@inheritDoc}
     */
    public Class<PositionalBigDecimalFieldMetadata> getFieldMetadataType() {
        return PositionalBigDecimalFieldMetadata.class;
    }

}
